﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ManageBanking.Models
{
    public class Withdraw_DepositModels
    {
        private OnlineBankingDataContext olbk = new OnlineBankingDataContext();

        public void WithdrawDeposit(string IdAccount, DateTime DateCreation, Decimal Money, bool IdType, int IdUserAdmin)
        {
            Deposit_With dw = new Deposit_With();
            dw.IdAccount = IdAccount;
            dw.DateCreation = DateCreation;
            dw.Money = Money;
            dw.IDType = IdType;
            dw.IdUserAdmin = IdUserAdmin;
            olbk.Deposit_Withs.InsertOnSubmit(dw);
            olbk.SubmitChanges();
        }

    }
}
